<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <style type="text/css">
    .trstyle0 {
        background-color: #e8e8e8;
    }
    
    .noty_message_h {
        height: 100px;
        padding: 15px;
    }
    
    .noty_text {
        font-size: 16px;
        font-weight: bold;
    }
    
    .desc {
        font-size: 12px;
        color: #999;
    }
    
    .mybutton {
        width: 200px;
        margin-bottom: 10px;
        overflow: hidden;
        cursor: default;
    }
    
    .mybutton2 {
        display: block;
        margin-top: 5px;
        width: 72px;
        height: 25px;
        line-height: 20px;
    }
    </style>
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>订单统计<small><a target="_blank"></a></small></h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                    <li class="active">订单统计</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="box">
                    <div class="box-header with-border">
                        <form action="__APP__/Admin/Total/order" method="GET" role="form">
                            <div class="input-group input-group-sm" style="width:100%;">
                                <div class="col-xs-3 npl">
                                    <select name="uid" id="uid" class="form-control">
                                        <option value="">- 请选择 -</option>
                                        <volist name="childrentree" id="vo">
                                            <option value="{$vo.uid}">{$vo.space}{$vo.name}</option>
                                        </volist>
                                    </select>
                                </div>
                                
                                <div class="col-xs-2 np">
                                    <input type="text" id="ctime" name="name" class="form-control pull-right" style="margin-right:5px;" placeholder="代理商名称" value="{$Think.get.name}">
                                </div>
                                <div class="col-xs-2">
                                    <select name="paycode" id="paycode" class="form-control" data-value="{$Think.get.paycode}">
                                        <option value="0">全部</option>
                                        <option value="1">支付码支付</option>
                                    </select>
                                </div>

                                <div class="col-xs-4 np">
                                    <input type="text" id="ctime" name="ctime" class="form-control pull-left datepicker" style="width:45%;" placeholder="开始时间" value="{$Think.get.ctime}">
                                    <span class="pull-left" style="line-height:35px; margin:0 5px; overflow: hidden;">到</span>
                                    <input type="text" id="utime" name="utime" class="form-control pull-left datepicker" style="width:45%;" placeholder="结束时间" value="{$Think.get.utime}">
                                </div>

                                <div class="col-xs-1 np">
                                    <div class="input-group-btn">
                                        <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                                    </div>
                                </div>
                                    
                                <script type="text/javascript">
                                $(function() {
                                    $('#uid').val('{$Think.get.uid}');
                                });
                                </script>
                                
                            </div>
                        </form>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-footer clearfix">
                        <div class="btn btn-info" style="float:left; height:30px; line-height:16px;">经典款： {$count.jingdian} 盒</div>
                        <div class="btn btn-info" style="float:left; height:30px; line-height:16px; margin-left:8px;">尊享款： {$count.zunxiang} 盒</div>
                        <ul class="pagination pagination-sm no-margin pull-right">
                            {$show}
                        </ul>
                    </div>
                    <div class="box-body">
                        <table class="table table-bordered HjTable" border="1">
                            <tbody>
                                <tr style="background-color: #E6E6FA;">
                                    <th style="width: 10%;">订单号</th>
                                    <th style="width: 10%;">代理商</th>
                                    <th style="width: 25%;">联系人</th>
                                    <th style="width: 5%;">数量</th>
                                    <th style="width: 15%;">名片属性</th>
                                    <th style="width: 17%;">开始时间/结束时间</th>
                                    <th style="width: 13%"></th>
                                </tr>
                                <notempty name="list">
                                <volist name="list" id="vo">
                                    <tr class='trstyle{$vo.status}'>
                                        <!--class='trstyle{$vo.status}' -->
                                        <td id="order_{$vo.order_no}">{$vo.order_no}</td>
                                        <td>{$vo.name}</td>
                                        <td>
                                            {$vo.shipping_name} / {$vo.shipping_mobile}
                                            <br> {$vo.shipping_province}{$vo.shipping_city}{$vo.shipping_distinct}
                                            <br> {$vo.shipping_address}
                                        </td>
                                        <td>{$vo.number}</td>
                                        <td>
                                            <p class="desc">外包装：</p>
                                            <p>
                                            <notempty name="vo.product_outside_name">
                                            {$vo.product_outside_name}
                                            <else/>
                                            {$vo['cart']}
                                            </notempty>
                                            </p>
                                            <p class="desc">内包装：</p>
                                            <p>{$vo.product_inside_name}</p>
                                        </td>
                                        <td>{$vo.ctime}
                                            <br/>{$vo.utime}</td>
                                        <td style="text-align:center;">
                                            <a class="btn btn-info" style="margin-bottom:5px;" href="__APP__/Admin/Order/detail/order_no/{$vo.order_no}" role="button">查看详情</a>
                                        </td>
                                    </tr>
                                </volist>
                                <else/>
                                <tr>
                                    <td colspan="7" style="text-align:center;">没有找到相关记录</td>
                                </tr>
                                </notempty>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer clearfix">
                        <ul class="pagination pagination-sm no-margin pull-right">
                            {$show}
                        </ul>
                    </div>
                </div>
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
</body>
<script type="text/javascript">
$("#Total").addClass("active");
$("#OrderTotal").addClass("active");
</script>  
</html>
